From: Olaf Hering Date: Tue, 3 Feb 2015 11:45:35 +0000 (+0100) Subject: docs: create reproducible html X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~3725 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=d76a66849100c4d0b1c4efe95845483681889e36;p=xen.git docs: create reproducible html The Makefile uses wildcard to collect a list of files. The resulting list of files is in directory order, which is random. As a result the generated html files will differ when build on different hosts. Use the built-in sort function to get a stable list of files. Signed-off-by: Olaf Hering Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu Acked-by: Ian Campbell --- diff --git a/docs/Makefile b/docs/Makefile index 2c0903b10a..854fb50d84 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -7,14 +7,14 @@ VERSION := $(shell $(MAKE) -C $(XEN_ROOT)/xen --no-print-directory xenversion) DOC_ARCHES := arm x86_32 x86_64 # Documentation sources to build -MAN1SRC-y := $(wildcard man/xl*.pod.1) -MAN1SRC-y += $(wildcard man/xenstore*.pod.1) +MAN1SRC-y := $(sort $(wildcard man/xl*.pod.1)) +MAN1SRC-y += $(sort $(wildcard man/xenstore*.pod.1)) -MAN5SRC-y := $(wildcard man/xl*.pod.5) +MAN5SRC-y := $(sort $(wildcard man/xl*.pod.5)) -MARKDOWNSRC-y := $(wildcard misc/*.markdown) +MARKDOWNSRC-y := $(sort $(wildcard misc/*.markdown)) -TXTSRC-y := $(wildcard misc/*.txt) +TXTSRC-y := $(sort $(wildcard misc/*.txt)) DOC_MAN1 := $(patsubst man/%.pod.1,man1/%.1,$(MAN1SRC-y))